package com.citi.gts.galto.modules.validation.dao.impl;

import com.citi.gts.galto.core.tools.exception.NonExistenceException;
import com.citi.gts.galto.modules.validation.dao.BranchDao;
import com.citi.gts.galto.modules.validation.exception.ValidationException;

public class BranchDaoMock implements BranchDao {

    @Override
    public void exist(String countryCode, String branchCode) throws ValidationException, NonExistenceException {

        if ("NOT_A_BRANCH".equalsIgnoreCase(branchCode)) {
            throw new NonExistenceException();
        }
    }
}
